#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <assert.h>
size_t mystrlen(const char* p)
{
	size_t cont = 0;
	assert(p != NULL);
	while (*p)
	{
		cont++;
		p++;
	}
	return cont;
}
size_t mystrlen1(const char* p )
{
	const char* start = p;
	const char* end =  p;
	assert(p != NULL);
	while (*end)
	{
		end++;
	}
	return end - start;
}
int main()
{
	char abc[] = "abcdefg";
	printf("%zd", mystrlen1(abc));
	return 0;
}